package com.aspose.cells;

class zaxu extends zaxs {
   public zaxu(zahn var1, int var2) {
      super(var1, var2);
   }

   public zahn b(zaay var1) {
      return new zaxu(this.k.b(var1), this.a);
   }

   public boolean b(int var1, int var2) {
      if (var2 < this.b) {
         if (this.k.b(var1, var2)) {
            this.g = true;
            this.d = this.k.i();
            this.e = this.k.j();
            if (this.d == var1) {
               this.i = this.d;
               this.j = this.e;
               this.h = true;
            } else {
               this.i = var1;
               this.j = this.b;
               this.h = false;
            }
         } else {
            this.g = false;
            this.h = false;
            this.i = var1;
            this.j = this.b;
         }
      } else {
         this.i = var1;
         this.j = var2;
         this.h = false;
         ++var1;
         if (var1 < this.c && this.k.b(var1, 0)) {
            this.g = true;
            this.d = this.k.i();
            this.e = this.k.j();
         } else {
            this.g = false;
         }
      }

      return true;
   }

   public boolean g() {
      if (this.h) {
         if (this.k.g()) {
            this.d = this.k.i();
            this.e = this.k.j();
            if (this.d == this.i) {
               this.j = this.k.j();
            } else {
               this.h = false;
               this.j = this.b;
            }
         } else {
            this.g = false;
            this.h = false;
            this.j = this.b;
         }
      } else {
         ++this.j;
         if (this.j >= this.a) {
            ++this.i;
            if (this.i >= this.c) {
               return false;
            }

            if (this.g && this.i == this.d) {
               this.j = this.e;
               this.h = true;
            } else {
               this.j = this.b;
            }
         }
      }

      return true;
   }

   public zagu h() {
      return (zagu)(this.h ? this.k.h() : zzb.a);
   }

   public zagu o() {
      return this.k.o();
   }

   public zagu p() {
      return this.k.p();
   }

   public boolean q() {
      return this.k.q();
   }

   public int r() {
      return 0;
   }

   public int s() {
      return this.c - 1;
   }

   public int t() {
      int var1 = this.k.t();
      return var1 < 0 ? this.b : var1;
   }

   public int u() {
      return this.a - 1;
   }

   public int v() {
      int var1 = this.k.v();
      return var1 < 0 ? this.b : var1;
   }

   public int w() {
      return this.a * this.c - 1;
   }
}
